package 电信数据清洗;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class RedTest extends Reducer<Data, NullWritable,Data,NullWritable> {
    @Override
    protected void reduce(Data key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {
        //直接写出数据即可
        for (NullWritable v:values){
            context.write(key,NullWritable.get());
        }
    }
}
